package com.example.demos.service;

import com.example.demos.dto.SupplierDTO;
import com.example.demos.entity.Supplier;
import com.example.demos.util.PageBean;

import java.math.BigInteger;
import java.util.List;

public interface SupplierService {
    PageBean<List<Supplier>>selectSupplierListByPage(SupplierDTO supplierDTO);

    boolean addSupplier(Supplier supplier);

    void deleteSupplier(BigInteger id);

    boolean selectExist(Supplier supplier);

    Supplier selectSupplierById(BigInteger id);

    boolean updateSupplier(Supplier supplier);
}
